package com.stedu.service;

import com.stedu.bean.Repair;
import com.stedu.exception.SteduException;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RepairService {
    List<Repair> selectByOname(String oname) throws SteduException;
    List<Repair> selectByOid(Integer oid) throws SteduException;
    List<Repair> selectByPid(Integer pid) throws SteduException;
    //添加
    boolean insert(Repair e) throws SteduException;
    //删除
    boolean delete(Integer rid) throws SteduException;
    //修改
    boolean update(Repair e) throws SteduException;
    //根据id查询
    Repair selectByRid(Integer rid);
    //查询所有
    List<Repair> selectAll();
    //获取某个维修项目维修人员id
    List<Integer> selectPidByRid(Integer rid);

    //添加某个维修项目与维修人员的关联关系
    void insertRidAndPid( Integer rid, Integer[] pids);
}
